num1 = input("请输入数字；")

num1_pre = num1[:2]
if num1.isdigit():
    print(f"{num1}是整型")
else:
        if num1_pre =="0b":
            patter_str = "01"
        elif num1_pre =="0o":
            patter_str = "01234567"
        elif num1_pre == "0x":
            patter_str = "0123456789abcdef"


        flag = 0        #标志位
        for i in num1[2:]:
            if i in patter_str:
                flag = 1
                break        #退出当前循环
        if flag == 0:
            print(f"{num1}是整型")
        else:
            print(f"{num1}是整型")
